﻿using Avalonia;
using Avalonia.Controls;
using Avalonia.Interactivity;
using Avalonia.Styling;

namespace MusicDiary.WindowApp.Views;

public partial class SettingView : Window
{
    public SettingView()
    {
        InitializeComponent();
    }
    
    private void ThemeChangeClick(object? sender, RoutedEventArgs e)
    {
        Application.Current!.RequestedThemeVariant = Application.Current.ActualThemeVariant == ThemeVariant.Dark
            ? ThemeVariant.Light
            : ThemeVariant.Dark;
    }
    
    private void QuitClick(object? sender, RoutedEventArgs e)
    {
        Close();
    }
}